package com.mock.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="TrustDistrict")
public class TrustDistrict {

	
	private Long trustDistrictId;
	private String name;
	private String description;
	private TrustRegion trustRegion;
	private boolean active;
	@Id
	@GeneratedValue
	@Column(name="trustDistrictId")
	public Long getTrustDistrictId() {
		return trustDistrictId;
	}
	public void setTrustDistrictId(Long trustDistrictId) {
		this.trustDistrictId = trustDistrictId;
	}
	@Column(name="name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="description")
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@ManyToOne(cascade = CascadeType.ALL)
	@JoinColumn(name="trustRegionId")
	public TrustRegion getTrustRegion() {
		return trustRegion;
	}
	public void setTrustRegion(TrustRegion trustRegion) {
		this.trustRegion = trustRegion;
	}
	/**
	 * @return the active
	 */
	public boolean isActive() {
		return active;
	}
	/**
	 * @param active the active to set
	 */
	public void setActive(boolean active) {
		this.active = active;
	}
	
}
